import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMyArenaCrossInfo
    
    export  class SMyArenaCrossInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMyArenaCrossInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.myProcess);
            arg1.writeInt(this.winNum);
            arg1.writeInt(this.loseNum);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.warfare);
            arg1.writeInt(this.waitingNum);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.myProcess = arg1.readInt();
            this.winNum = arg1.readInt();
            this.loseNum = arg1.readInt();
            this.rank = arg1.readInt();
            this.warfare = arg1.readInt();
            this.waitingNum = arg1.readInt();
            return;
        }

        public /* const */_type: int=344;

        public /* var */myProcess: int;

        public /* var */winNum: int;

        public /* var */loseNum: int;

        public /* var */rank: int;

        public /* var */warfare: int;

        public /* var */waitingNum: int;

        public static /* var */_regist: SMyArenaCrossInfo;
    }

            SMyArenaCrossInfo._regist = new SMyArenaCrossInfo(true);
        